﻿using DotNetExtensions.Core.IOC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DotNetExtensions.Core.WebApi.Jwt
{
    [AutoInject]
    public interface IJwtValidateService<T> where T : class, new()
    {
        public bool Validate(string token, JwtParameters parameters, out T user, out string newToken);
        string CreateJwtToken(JwtParameters parameters, int expiredMunutes, out string audience, out DateTime expiredTime);
    }
}
